Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wgpu-core] fix length of copy in queue_write_texture #5973

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

teoxoy
Copy link
Member

@teoxoy teoxoy commented Jul 17, 2024

The size of the given data might be less than the size of the staging buffer. This issue became apparent with the refactor in 6f16ea4 (#5946) since there is now an assert in StagingBuffer.write(). This means that we have been copying things past the end of data 😬.

Ruffle ran into this in #3193 (comment).

The size of the given `data` might be less than the size of the staging buffer.
This issue became apparent with the refactor in 6f16ea4 (gfx-rs#5946) since there is now an assert in `StagingBuffer.write()`.

Ruffle ran into this in gfx-rs#3193 (comment).
@teoxoy teoxoy requested a review from a team as a code owner July 17, 2024 13:05
@teoxoy teoxoy self-assigned this Jul 17, 2024
@cwfitzgerald cwfitzgerald merged commit 7e112ca into gfx-rs:trunk Jul 17, 2024
25 checks passed
@teoxoy teoxoy deleted the fix-copy-len branch July 17, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants